/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Page_ExamSubmitVO_ } from '../models/BaseResponse_Page_ExamSubmitVO_';
import type { ExamSubmitAddRequest } from '../models/ExamSubmitAddRequest';
import type { ExamSubmitQueryRequest } from '../models/ExamSubmitQueryRequest';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class ExamSubmitControllerService {

    /**
     * doSubmit
     * @param examSubmitAddRequest examSubmitAddRequest
     * @returns BaseResponse_long_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static doSubmitUsingPost(
examSubmitAddRequest: ExamSubmitAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_submit/',
            body: examSubmitAddRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listExamSubmitByPage
     * @param examSubmitQueryRequest examSubmitQueryRequest
     * @returns BaseResponse_Page_ExamSubmitVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listExamSubmitByPageUsingPost(
examSubmitQueryRequest: ExamSubmitQueryRequest,
): CancelablePromise<BaseResponse_Page_ExamSubmitVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_submit/list/page',
            body: examSubmitQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
